Remove SYMBOL_WITH_POS_{POS,SYM}
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Feb 2024 17:54:51 +0000 (09:54 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 13 Feb 2024 19:20:33 +0000 (11:20 -0800)
commit10c6aea4434b1c9ccea30a1f87f301ab2c9bade6
tree80269754299a8edcb4cd33ba878f00617ced390c
parent473dac880105cf6055a185eb3b9764243f27697c
Remove SYMBOL_WITH_POS_{POS,SYM}

* src/fns.c (internal_equal): Turn comment into eassert
that !symbols_with_pos_enabled.
(sxhash_obj): Simplify case of symbol with pos (when enabled).
* src/lisp.h (XSYMBOL_WITH_POS_SYM, XSYMBOL_WITH_POS_POS)
(maybe_remove_pos_from_symbol): New inline functions.
(SYMBOL_WITH_POS_SYM, SYMBOL_WITH_POS_POS): Remove.
All uses replaced by the new functions.  This avoids some
double-checking in the source code, simplifies the code overall,
and avoids the need for "Type checking is done in the following
macro" comments to explain unusual code.
src/data.c
src/fns.c
src/lisp.h
src/lread.c
src/timefns.c